// 后端返回的字典数据接口(比如省市区等等)
import request from '@/utils/request'

// 查询国家地区级联
export function getRegionCascader(R1 = true, R2 = true, R3 = true, R4 = false) {
  return request({
    url: 'http://47.241.167.187:9700/api/query',
    method: 'post',
    data: {
      R1,
      R2,
      R3,
      R4,
    },
  })
}

// 查询区域
export function getAllRegions() {
  return request({
    url: 'http://47.241.167.187:9700/api/init',
    method: 'get',
  })
}

export function getUserList(data) {
  return request({
    url: '/user',
    method: 'post',
    data,
  })
}

// 查询公共资源
export function getCommonData(data) {
  return request({
    url: '/query_search',
    method: 'post',
    data,
  })
}
